package com.meisupic.copyright.service;

import com.meisupic.copyright.domain.po.RealNameAuth;
import com.meisupic.copyright.domain.query.RealNameAuthQuery;
import com.meisupic.copyright.domain.vo.PageRealNameAuthVo;
import com.meisupic.copyright.domain.vo.RealNameAuthVo;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * creation wuxun
 *
 * @version V1.0
 * @Description: TODO
 * @date 2018/1/13 22:58
 */
public interface IRealNameAuthService {

  RealNameAuthVo findOne(RealNameAuthQuery query);

  RealNameAuth findById(Long id);

  RealNameAuth findByUserId(Long userId);

  List<RealNameAuthVo> findAll(RealNameAuthQuery query);

  RealNameAuth save(RealNameAuth realNameAuth);

  Page<PageRealNameAuthVo> findPage(RealNameAuthQuery realNameAuthQuery, Pageable pageable);

  void personAuthAndSave(RealNameAuth realNameAuth);

  void enterpriseAuthAndSave(RealNameAuth realNameAuth);

  void updateRealNameAuth(RealNameAuth realNameAuth);

  void pushApplyerToDci(RealNameAuth realNameAuth);

  String pushApplyer(Long id);

  void saveApiRealNameAuth(RealNameAuth realNameAuth);

  void registerUser(RealNameAuth realNameAuth);
}
